import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;

public class JCommanderExample {
    @Parameter(names={"--novice", "-n"})
    String novice;
    @Parameter(names={"--slogan", "-s"})
    String slogan;

    public static void main(String ... argv) {
        JCommanderExample cmd = new JCommanderExample();
        JCommander.newBuilder()
                .addObject(cmd)
                .build()
                .parse(argv);
        cmd.run();
    }

    public void run() {
        System.out.printf("%s %s", novice, slogan);
    }

}
